<#ftl/>
package ${servicePackage};
import java.time.LocalDateTime;
import ${entityPackage}.${entity};
<#if need_saveDto>
import ${saveDtoPackage}.${saveDtoClassName};
import ${voPackage}.${voClassName};
</#if>
import java.util.List;


/**
 * <p>
 * ${table.comment!} 服务类
 * </p>
 * @author ${author}
 * @since ${date}
 */
public interface ${serviceClassName} {
<#if need_saveDto>
      int add(${saveDtoClassName} ${classVar});

      int update(${saveDtoClassName} ${classVar});

      void delete(<#list table.fields as field><#if field.keyFlag><#--主键java类型-->List<${field.columnType.type}> ${field.propertyName}</#if></#list>);

      ${voClassName} getById(<#list table.fields as field><#if field.keyFlag><#--主键java类型-->${field.columnType.type} ${field.propertyName}</#if></#list>);

      List<${voClassName}> queryList(${entity} ${classVar});

    <#else>
        int add(${entity} ${classVar});

        int update(${entity} ${classVar});

        void delete(<#list table.fields as field><#if field.keyFlag><#--主键java类型-->List<${field.columnType.type}> ${field.propertyName}</#if></#list>);

        ${entity} getById(<#list table.fields as field><#if field.keyFlag><#--主键java类型-->${field.columnType.type} ${field.propertyName}</#if></#list>);

        List<${entity}> queryList(${entity} ${classVar});
</#if>
}

